package xiaocao.learn.java.basic.info;

import java.io.File;

/**删除某个目录*/
public class DeleteDirectory {
	
	public static void main(String[] args) {
		File f = new File("e://div+css+material");
		deleteDirectory(f);
		f.delete();
	}
	
	private static void deleteDirectory(File directory) {
		for(File f: directory.listFiles()) {
			if(f.isDirectory()) {
				deleteDirectory(f);
			}
			f.delete();
		}
	}
}
